<!DOCTYPE html>
<script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="Form">
    <input type="button" value="提交" onclick="sendData()"/>
</form>
<script>
    function sendData() {
        var timestamp = (new Date()).valueOf();
        var token = md5("epms" + timestamp);
        data={
            pId:10003,
            sIds:[10000005,
                10000006,
                10000007]
        }
        $.ajax({
            url: "http://localhost:8080/manager/distributeStaff",
            data:data,
            method: "POST",
            headers: {
                token: token,
                timestamp: timestamp
            },
            cache: false,
            success: function (res) {
                console.log('res', res);
            },
            error: function (err) {
                console.log(err);
            }
        })
    }
</script>
</body>
</html>